---
root: "/v5.1"
layout: "default"
title: "dump"
keywords: ""
description: "Swift documentation for 'dump'"
---

<div class="intro-declaration"><code class="language-swift">func dump(_:to:name:indent:maxDepth:maxItems:)(_ value: T, to target: inout TargetStream, name: String? = nil, indent: Int = 0, maxDepth: Int = .max, maxItems: Int = .max) -> T</code></div><div class="discussion comment"><p>Dumps the given object's contents using its mirror to the specified output
stream.
</p>
</div><div class="intro-declaration"><code class="language-swift">func dump(_:name:indent:maxDepth:maxItems:)(_ value: T, name: String? = nil, indent: Int = 0, maxDepth: Int = .max, maxItems: Int = .max) -> T</code></div><div class="discussion comment"><p>Dumps the given object's contents using its mirror to standard output.
</p>
</div>